package net.xdclass.websocket.model;

import java.util.Date;

/**
 * @description: 接收信息体
 * @author: Yz
 * @create: 2020-06-30 14:00
 **/
public class InMessage {

    /**
     * 消息从哪里来
     */
    private String from;

    /**
     * 消息发送至
     */
    private String to;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 时间
     */
    private Date time;

    public InMessage() {
    }

    public InMessage(String content) {
        this.content = content;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
